//
//  BaseAppDelegateHandler.m
//  MyFamework
//
//  Created by carlos on 13-9-8.
//  Copyright (c) 2013年 carlos. All rights reserved.
//

#import "BaseAppDelegateHandler.h"

@implementation BaseAppDelegateHandler
//注册监听器
+ (void) registerNotify{
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didFinishLaunchingWithOptionsD:) name:kAppDelegateDidFinishLaunchingWithOptions object:nil];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidBecomeActiveD:) name:kApplicationDidBecomeActive object:nil];
}
#pragma mark 系统的生命周期方法

+ (void) didFinishLaunchingWithOptionsD:(NSNotification *)notification{
    CLog(@"didFinishLaunchingWithOptionsL %@",notification.userInfo);
    UIApplication * application = notification.userInfo[kWKey1];
    NSDictionary *launchOptions = notification.userInfo[kWKey2];
    [self application:application didFinishLaunchingWithOptions:launchOptions];
}
+ (void) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    
}

+ (void) applicationDidBecomeActiveD:(NSNotification *)notification{
    CLog(@"didFinishLaunchingWithOptionsL %@",notification.userInfo);
    UIApplication * application = notification.userInfo[kWKey1];
    [self applicationDidBecomeActive:application];
}
+ (void)applicationDidBecomeActive:(UIApplication *)application{
    CLog(@"applicationDidBecomeActive");
}
@end
